<?php

class WhatsitContainer
{
    private $container_type;
    private $whatsits;
    private $db;

    public function __construct($container_type, Whatsit_Database $db)
    {
        $this->container_type = $container_type;
        $this->db;
    }

    private function fetchWhatsitList()
    {
        $this->db->getWhatsits();
    }

    private function getWhatsitList()
    {
        if (isset($this->whatsits)) {
            return $this->whatsits;
        } else {
            return $this->fetchWhatsitList();
        }
    }

    public function draw()
    {
        foreach ($this->getWhatsitList() as $whatsit) {
            $whatsit->draw();
        }
    }

    public function add()
    {


    }

    public function remove($whatsit_id)
    {


    }

}